package base.template;

/**
 * @program: DesignPatterns
 * @description: 测试类
 * @author: Mr.Dai
 * @create: 2018-04-28 16:22
 **/
public class MainTest {

    public static void main(String[] args) {
        AbstractDisplay hms = new CharDisplay('S');
        AbstractDisplay t1 = new StringDisplay("hi template method");
        hms.display();
        t1.display();
    }
}
